package pieces;

import java.util.ArrayList;

public class Horse {
	
	int[] position = new int[2];
	private Horse prevPiece;
	public ArrayList<Horse> nextPieces;
	
	

	public Horse(Horse prevPiece, int[] position){
		
		this.position = position;
		this.prevPiece = prevPiece;
		//this.nextPieces = new ArrayList<Horse>();
	}
	
	public int[] getPosition() {
		return position;
	}

	public void setPosition(int[] position) {
		this.position = position;
	}

	public Horse getPrevPiece() {
		return prevPiece;
	}
	
	@Override
	public String toString() {
		
		return "(" + position[0] + ", " + position[1] + ")" ;
	}
}
